#ifndef PHOTO_H
#define PHOTO_H

#include <QWidget>
#include <QTimer>
#include <QDir>
#include <QDebug>
#include <QImage>
#include <QImageReader>
namespace Ui {
class photo;
}

class photo : public QWidget
{
    Q_OBJECT

public:
    explicit photo(QWidget *parent = nullptr);
    ~photo();
    void photo_init();
private slots:
    void photoget();
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();
    void photoupdate();

    void on_pushButton_3_clicked();

private:
    Ui::photo *ui;
    QDir dir;
    QString photodir="/mylinux/images";
    QTimer timer;
    int index;
    QStringList file_list;
    int current_index;
};

#endif // PHOTO_H
